#include <stdio.h>
int main(void)
{
	float profit_Daphne = 100;
	float profit_Deirdre = 100;
	int count = 0;
	do
	{
		profit_Daphne += 100 * 0.1;
		profit_Deirdre += profit_Deirdre * 0.05;
		count++;
	} while (profit_Deirdre < profit_Daphne);
	printf("%d years later,Deirdre's investment amount more than Daphne.\n",count);
	printf("Daphne's profit is %.2f dollars.\n", profit_Daphne);
	printf("Deirdre's profit is %.2f dollars.\n", profit_Deirdre);
	return 0;
}